package com.wkbb.common.enums;


/**
 * @author luowenyan
 */

public enum TypeSetEnum {
    //目前只有: 公办园，民办园，合办园，普惠园四类幼儿园
    //性质(1公办 2民办 3合办 4普惠)
    STATE_RUN(1,"公办"),
    LOCAL_PEOPLE(2,"民办"),
    JOINTLY_RUN(3,"合办"),
    INCLUSIVE(4,"普惠"),
    COLLEGE(5,"独立学院");

    private TypeSetEnum(Integer value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    private Integer value;

    private String desc;

    public Integer getValue() {
        return this.value;
    }

    public void setValue(Integer value) {
        this.value = value;
    }

    public String getDesc() {
        return this.desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public static String getDesc(Integer value) {
        for (TypeSetEnum typeSetEnum : TypeSetEnum.values()) {
            if (typeSetEnum.getValue().intValue()==value) {
                return typeSetEnum.getDesc();
            }
        }
        return null;
    }
    public static TypeSetEnum valueOf(Integer value){
        for (TypeSetEnum typeSetEnum : TypeSetEnum.values()) {
            if (typeSetEnum.getValue().intValue()==value) {
                return typeSetEnum;
            }
        }
        return null;
    }
}
